package com.pureut.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.storage.domain.MaterialChange;
import com.pureut.storage.dto.MaterialChangeDto;
import com.pureut.storage.dto.WmsStockInfoDto;
import com.pureut.storage.vo.MaterialChangeVo;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;

import java.util.List;

/**
 *
 */
public interface MaterialChangeService extends IService<MaterialChange> {


    /**
     * 根据物料号码查出相关信息
     * @param number
     * @return
     */
    WmsStockInfoDto viewStock(String number);

    /**
     * 物料变更新增
     * @param materialChangeVo
     * @return
     */
    boolean addChange(MaterialChangeVo materialChangeVo);

    /**
     * 物料变更列表查询
     * @param materialChangeVo
     * @return
     */
    TableDataInfo<MaterialChangeDto> getList(MaterialChangeVo materialChangeVo, PageQuery pageQuery);
}
